package com.cc.shriojwtredis.wanling.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cc.shriojwtredis.wanling.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    User getUserById(int id);
    List<User> getUserByRole(int role);
    User getUserByAccountAndPassword(@Param("account") String account, @Param("password") String password);
    User getRoleByAccount(String account);
    int insertUser(User user);
    User getUserByAccount(@Param("account") String account);

}
